FROM nginx:alpine

# 安装时区工具
RUN set -ex \
    && sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories \
    && apk --update add tzdata \
    && cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

EXPOSE 80 443

# 定义容器启动时运行的命令
CMD ["nginx", "-g", "daemon off;"]
